import request from '../request.js'

// 家族树/故恩土-评论列表
export function pinglunList(params) {
    return new Promise((resolve, reject)=>{
        request.get("/api/home/pinglunList", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}

// 家族树/故恩土-回复  http://192.168.0.139:263/api/home/pinglun
export function huifu(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/home/pinglun", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}
// 家族树/故恩土-回复二级列表 http://192.168.0.139:263/api/home/pinglunChildren
export function pinglunChildren(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/home/pinglunChildren", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}


// 家族树/故恩土 - 点赞  http://192.168.0.139:263/api/home/dianzan
export function dianzan(params) {
    return new Promise((resolve, reject)=>{
        request.post("/api/home/dianzan", params).then((result)=>{
            resolve(result)
        }).catch(err=>{
            reject(err)
        });
    });
}